Skip to content

chore: publish security.txt for ipfs.tech - #324

Merged
lidel merged 3 commits into
mainfrom
add-security-txt
Aug 10, 2026
Merged

chore: publish security.txt for ipfs.tech#324
lidel merged 3 commits into
mainfrom
add-security-txt

Conversation

@lidel

@lidel lidel commented Aug 6, 2026

Copy link
Copy Markdown
Member

Problem

Someone who finds a security bug often uses LLMs and automated tools and its not obvious where to send it. Researchers and scanners check /.well-known/security.txt first, and today that returns 404. So they guess an address, spam multiple emails, bother old maintainers etc.

Fix

  • Serves /.well-known/security.txt with security@ipfs.io as the contact and a link to the project policy.
  • Generates the Expires field at build time, twelve months out, so nobody has to remember to bump a date.1
  • Rounds that date to the first of the build month, so rebuilds in the same month stay byte-identical and the deployed CID does not churn.
  • Points gateway abuse reports at the abuse policy, to keep them out of the security mailbox.

This covers the ipfs.tech domain only. Per-repo reporting still lives in each repo's SECURITY.md.

Footnotes

  1. RFC 9116, section 2.5.5: Expires must always be present, and its value should be less than a year in the future to avoid staleness.

lidel added 2 commits August 6, 2026 19:55
Publishes an RFC 9116 security contact at
https://ipfs.tech/.well-known/security.txt, so scanners and researchers
looking for a reporting route find security@ipfs.io without digging
through repos.

The Expires field is set to 2027-08-01 and has to be moved forward
before then, or the file is treated as stale.
Replaces the static file with an Astro endpoint so the RFC 9116 Expires
field moves forward on its own instead of going stale a year from now.

The value is the first of the build month, twelve months out, so repeat
builds within the same month stay byte-identical and the deployed CID
does not churn.
@lidel
lidel requested a review from 2color August 6, 2026 18:18
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

🚀 Build Preview on IPFS ready

Kubo's recursive add skips dotfiles unless --hidden is passed, so the
deployed CID would miss .well-known/security.txt. Bump the deploy
action to v2: its default unixfs-v1-2025 cid-profile yields the same
root CID as the flags previously passed via ipfs-add-options.
@lidel
lidel merged commit c29ebe8 into main Aug 10, 2026
2 checks passed
@lidel
lidel deleted the add-security-txt branch August 10, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants